import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: () => import('../views/Login/Login')
    },
    {
      path: '/login',
      name: 'Login',
      component: () => import('../views/Login/Login')
    },
    {
      path: '/EmailLogin',
      name: 'EmailLogin',
      component: () => import('../views/Login/EmailLogin.vue')
    },
    {
      path: '/OtherLogin',
      name: 'OtherLogin',
      component: () => import('../views/Login/OtherLogin.vue')
    },
    {
      path: '/register',
      name: 'Register',
      component: () => import('../views/Register/Register.vue')
    },
    {
      path: '/Certification',
      name: 'Certification',
      component: () => import('../views/Register/Certification')
    },
    {
      path: '/home',
      name: 'Home',
      component: () => import('../views/Home/Home.vue'),
      children: [
        {
          path: 'course',
          name: 'Course',
          component: () => import('../views/Home/Course.vue')
        },
        {
          path: 'userinfo',
          name: 'UserInfo',
          component: () => import('../views/Home/UserInfo.vue')
        }
      ]
    },
    {
      path: '/section',
      name: 'Section',
      component: () => import('../views/Section/Section.vue'),
      children: [
        {
          path: 'sectionindex',
          name: 'SectionIndex',
          component: () => import('../views/Section/SectionIndex.vue')
        },
        {
          path: 'task',
          name: 'Task',
          component: () => import('../views/Section/Task.vue')
        },
        {
          path: 'statistics',
          name: 'Statistics',
          component: () => import('../views/Section/Statistics.vue')
        },
        {
          path: 'material',
          name: 'Material',
          component: () => import('../views/Section/Material.vue')
        },
        {
          path: 'notify',
          name: 'Notify',
          component: () => import('../views/Section/Notify.vue')
        },
        {
          path: 'operation',
          name: 'Operation',
          component: () => import('../views/Section/Operation.vue')
        },
        {
          path: 'exam',
          name: 'Exam',
          component: () => import('../views/Section/Exam.vue')
        },
        {
          path: 'discuss',
          name: 'Discuss',
          component: () => import('../views/Section/Discuss.vue')
        },
        {
          path: 'discussinfo',
          name: 'DiscussInfo',
          component: () => import('../views/Section/DiscussInfo.vue')
        }
      ]
    },
    {
      path: '/Teaching',
      name: 'TSection',
      component: () => import('../views/Teaching/TSection.vue'),
      children: [
        {
          path: 'Tsectionindex',
          name: 'TSectionIndex',
          component: () => import('../views/Teaching/TSectionIndex.vue')
        },
        {
          path: 'Ttask',
          name: 'TTask',
          component: () => import('../views/Teaching/TTask.vue')
        },
        {
          path: 'Tstatistics',
          name: 'TStatistics',
          component: () => import('../views/Teaching/TStatistics.vue')
        },
        {
          path: 'Tmaterial',
          name: 'TMaterial',
          component: () => import('../views/Teaching/TMaterial.vue')
        },
        {
          path: 'Tnotify',
          name: 'TNotify',
          component: () => import('../views/Teaching/TNotify.vue')
        },
        {
          path: 'Toperation',
          name: 'TOperation',
          component: () => import('../views/Teaching/TOperation.vue')
        },
        {
          path: 'Texam',
          name: 'TExam',
          component: () => import('../views/Teaching/TExam.vue')
        },
        {
          path: 'Tdiscuss',
          name: 'TDiscuss',
          component: () => import('../views/Teaching/TDiscuss.vue')
        },
        {
          path: 'Tdiscussinfo',
          name: 'TDiscussInfo',
          component: () => import('../views/Teaching/TDiscussInfo.vue')
        },
      ]
    },
    {
      path: '/RichText',
      name: 'RichText',
      component: () => import('../views/Teaching/RichText.vue')
    },
    {
      path: '/NewCourse',
      name: 'NewCourse',
      component: () => import('../views/Teaching/NewCourse.vue')
    },
    {
      path: '/Evaluation',
      name: 'Evaluation',
      component: () => import('../views/Section/Evaluation.vue')
    },
    {
      path: '/SectionContent',
      name: 'SectionContent',
      component: () => import('../views/Section/SectionContent.vue')
    },
    {
      path: '/Question',
      name: 'Question',
      component: () => import('../views/Teaching/Question.vue')
    },
    {
      path: '/AddQuestion',
      name: 'AddQuestion',
      component: () => import('../views/Teaching/AddQuestion.vue'),
      children: [
        {
          path: '/Choose',
          name: 'Choose',
          component: () => import('../views/Teaching/Choose.vue')
        },
        {
          path: '/Anwser',
          name: 'Anwser',
          component: () => import('../views/Teaching/Anwser.vue')
        }
      ]
    },
    {
      path: '/QuestionDetails',
      name: 'QuestionDetails',
      component: () => import('../views/Teaching/QuestionDetails.vue')
    },
    {
      path: '/RecycleQuestion',
      name: 'RecycleQuestion',
      component: () => import('../views/Teaching/RecycleQuestion.vue')
    }
  ]
})
